define(['mui','ajax'], function() {
	mui.init();

	mui.plusReady(function() {
		//判断显示文字
	});
	mui("#setlist").on('tap', 'li', function() {
		console.log('setlist')
			if(unsafe_tap()) return; //防御编码
			//点击事件
			user = judgeLogin();
			var page = this.getAttribute("id");
			if(user) {
				openpage(page);
			} else {
				plus.nativeUI.toast("请登录");
				openpage('/src/pages/login_standard.html');
			}
		});
var first = null; mui.back = function() {
	//首次按键，提示‘再按一次退出应用’
	if(!first) {
		first = new Date().getTime();
		mui.toast('再按一次退出应用');
		setTimeout(function() {
			first = null;
		}, 1000);
	} else {
		if(new Date().getTime() - first < 1000) {
			plus.runtime.quit();
		}
	}
};

})